﻿<%@ Page Language="VB" MasterPageFile="~/masterpages/Main.master" AutoEventWireup="false" CodeFile="register.aspx.vb" Inherits="register" title="Untitled Page" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc2" %>

<%@ Register assembly="System.Web.DynamicData, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.DynamicData" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="fullContent">
    <strong>User Registration</strong><br /><br /> 
    
    
        <div class="formRow">
            <span class="formField">
                <label for="txtFName">First Name:</label>
             </span>
            <asp:TextBox ID="txtFName" runat="server" CssClass="inputLong" />
            <asp:RequiredFieldValidator ID="valFName" runat="server" 
                                        ErrorMessage="Enter First Name" ControlToValidate="txtFName" Display="Dynamic" />
        </div>

        <div class="formRow">
            <span class="formField">
                <label for="txtLName">Last Name:</label>
             </span>
            <asp:TextBox ID="txtLName" runat="server" CssClass="inputLong" />
            <asp:RequiredFieldValidator ID="valLName" runat="server" 
                                        ErrorMessage="Enter Last Name" ControlToValidate="txtLName" Display="Dynamic" />
        </div>

        <div class="formRow">
            <span class="formField">
                <label for="txtBirthDate">Birth date:</label>
             </span>
            <asp:TextBox ID="txtBirthDate" runat="server" CssClass="inputLong" /> <asp:Image ID="imgCal" runat="server" ImageUrl="~/img/Calendar_scheduleHS.png" />
            <cc2:CalendarExtender ID="CalendarExtender1" runat="server" PopupButtonID="imgCal" TargetControlID="txtBirthDate" Animated="true" />
            <asp:RegularExpressionValidator ID="valBirthDate" runat="server" ControlToValidate="txtBirthDate" 
                                            ErrorMessage="Enter your birthdate" Display="Dynamic" 
                                            ValidationExpression="\b(0?[1-9]|1[012])[ /](0?[1-9]|[12][0-9]|3[01])[ /](19|20)?[0-9]{2}\b" />

        </div>

        <div class="formRow">
            <span class="formField">
                <label for="txtEmail">E-mail:</label>
             </span>
            <asp:TextBox ID="txtEmail" runat="server" CssClass="inputLong" />
            <asp:RegularExpressionValidator ID="valEmailFormat" runat="server" ErrorMessage="Please enter a valid E-mail address" 
                                            ValidationExpression="[a-z0-9_-]+(\.[a-z0-9_-]+)*@[a-z0-9_-]+(\.[a-z0-9_-]+)+" Display="Dynamic"
                                            controltovalidate="txtEmail" />
            <asp:RequiredFieldValidator ID="valEmail" runat="server" ErrorMessage="Your E-mail address" 
                                        ControlToValidate="txtPassword" Display="Dynamic" />
        </div>

        <div class="formRow">
            <span class="formField">
                <label for="txtEmailCon">Confirm E-mail:</label>
             </span>
            <asp:TextBox ID="txtEmailCon" runat="server" CssClass="inputLong" />
            <asp:CompareValidator ID="valEmailCon" runat="server" ErrorMessage="E-mail address does not match" 
                                  ControlToValidate="txtEmailCon" ControlToCompare="txtEmail" Display="Dynamic" /><br /> 
        </div>

        <div class="formRow">
            <span class="formField">
                <label for="txtPassword">Password:</label>
             </span>
            <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" CssClass="inputLong" />
            <asp:RequiredFieldValidator ID="valPassword" runat="server" 
                                        ErrorMessage="Enter password" ControlToValidate="txtPassword" Display="Dynamic" />
        </div>

        <div class="formRow">
            <span class="formField">
                <label for="txtPasswordCon">Confirm Password:</label>
             </span>
            <asp:TextBox ID="txtPasswordCon" runat="server" TextMode="Password" CssClass="inputLong" />
            <asp:CompareValidator ID="valPasswordCon" runat="server" ErrorMessage="Passwords do not match" 
                                  ControlToValidate="txtPasswordCon" ControlToCompare="txtPassword" Display="Dynamic" /><br /> 

        </div>
    
        <div class="formRow">
            <span class="formField">
                <label for="btnAddCredentials"></label>
             </span>
            <asp:Button id="btnAddCredentials" runat="server" Text="Add Credentials" />

        </div>


</div>
</asp:Content>

